/*
 * Copyright (C) 2016 yixun All Rights Reserved.
 * 
 * AuditStatusEnum.java
 */
package com.emm.yixun.common.model.enums;
import java.io.Serializable;
import org.apache.commons.lang.StringUtils;
/**
 * [文件名称]<br>
 * ReportMessageEnum.java<br>
 * <br>
 * [文件描述]<br>
 * 房产项目信息 pojo bean<br>
 * <br>
 * [修改记录]<br>
 * 2016-05-11 11:27:20 创建<br>

 * @version 1.00
*/
public enum ReportMessageEnum implements Serializable{
		JGFA("1","【价格方案】${schemeName}；发起人：${userName}【审核通过】"),
		JGFASX("2","【价格方案失效】${schemeName}；发起人：${userName}【审核通过】"),
		RC("3","【认筹】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		TRC("4","【退认筹】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		RG("5","【认购】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		RGHF("6","【认购换房】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		TRG("7","【退认购】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		QY("8","【签约】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		YQQY_1("9","【延期签约（15天内）】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		YQQY_2("10","【延期签约（15~30天）】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		YQQY_3("11","【延期签约（30天以上）】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		RGZKSP("12","【认购折扣审批】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		QYZKSP("13","【签约折扣审批】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		QYGM("14","【签约更名】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		QYHF("15","【签约换房】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		QYTF("16","【签约退房】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		YSKYQ_1("17","【延期付款（15天内）】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		YSKYQ_2("18","【延期付款（15~30天）】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		YSKYQ_3("19","【延期付款（30天以上）】${roomName}；客户：${customer}；发起人：${userName}【审核通过】"),
		RGGM("20","【认购更名】${roomName}；客户：${customer}；发起人：${userName}【审核通过】");
		
		private final String no;
		private final String des;
		
		/**
		 * 私有构造函数
		 * @param code
		 * @param description
		 */
		ReportMessageEnum(String no, String des) {
			this.no = no;
			this.des = des;
		}

		/**
		 * @return Returns the no.
		 */
		public String getNo() {
			return no;
		}

		/**
		 * @return Returns the des.
		 */
		public String getDes() {
			return des;
		}
		
		/**
		 * 通过枚举<code>des</code>获得枚举
		 * 
		 * @param des
		 * @return
		 */
		public static ReportMessageEnum getByDescription(String des) {
			if(StringUtils.isBlank(des)){
				return null;
			}
			for (ReportMessageEnum menum : values()) {
				if (menum.getDes().equals(des)) {
					return menum;
				}
			}
			return null;
		}
		public static ReportMessageEnum getByNo(String no) {
			if(StringUtils.isBlank(no)){
				return null;
			}
			for (ReportMessageEnum menum : values()) {
				if (menum.getNo().equals(no)) {
					return menum;
				}
			}
			return null;
		}
}
